from django.conf.urls import url
from .views import AreaView, HouseCreateView, HouseListView, HouseIndexView, HouseDetailsView

urlpatterns = [
    # 城区列表
    url(r'^areas/$', AreaView.as_view()),
    # 发布房源
    url(r'^houses$', HouseCreateView.as_view({'post': 'create'})),
    # 我的房屋列表
    url(r'^user/houses$', HouseListView.as_view({'get': 'list'})),
    # 显示房源信息
    url(r'^houses/index$', HouseIndexView.as_view()),
    # 显示房屋详情信息
    url(r'^houses/(?P<pk>\d+)$', HouseDetailsView.as_view()),
]

